package com.website.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.website.system.dao.FlowersMapper;
import com.website.system.model.Flowers;
import com.website.system.service.FlowersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class FlowersServiceImpl extends ServiceImpl<FlowersMapper, Flowers> implements FlowersService {

    @Resource
    private FlowersMapper flowersMapper;

    @Override
    public List<Flowers> findAll() {
        return flowersMapper.findAll();
    }

    @Override
    public int addFlower(List<Flowers> flowers) {
        return flowersMapper.addFlower(flowers);
    }
}

